#include "StdAfx.h"
#include "WeaponFireManager.h"
#include "Bullet.h"

namespace _MODULE_
{
	namespace _GAME_
	{


		WeaponFireManager::WeaponFireManager(void)
		{
		}

		WeaponFireManager::~WeaponFireManager(void)
		{
		}
		void WeaponFireManager::AddFiredBullet(_P_GAME::Bullet* ptrBullet)
		{
			
			if(m_listFiredBullet.size()>1)
			{
    			_P_GAME::Bullet* ptrBullet=m_listFiredBullet.front();

				m_listFiredBullet.pop_front();

			
				ptrBullet->GetOwner()->Destroy();

			}
			m_listFiredBullet.push_back(ptrBullet);

		}
	}
}